package oop3.src.polymorohic_demo;

public class Mouse implements polymorohic_demo.USB {
    private String name;

    public Mouse() {
    }

    public Mouse(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void connect() {
        System.out.println(name + "鼠标已经接入");
    }
    public void click(){
        System.out.println("鼠标点击");
    }
    @Override
    public void unconnect() {
        System.out.println(name + "已经弹出");
    }
}
